package wfm.ws.payment.rest;

import javax.ws.rs.WebApplicationException;

import wfm.entities.Ticket;

public class PaymentRESTServiceImpl implements PaymentRESTService
{
	
	public PaymentRESTServiceImpl()
	{
	}
	
	@Override
	public String payBill(String accountNr, String amount)
	 throws WebApplicationException
	{				
		double randomNumber = Math.random();
		
		if(accountNr != null && amount != null && randomNumber > 0.1){
			return amount;
		}
		
		return null;
	}
}
